package com.atao.baokede.mapper;

import com.atao.baokede.pojo.MerchantMessage;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface MessageMapper {
    // 添加消息
    @Insert("insert into merchant_message(merchant_id, title, content, data,create_time) values(#{merchantId}, #{title}, #{content}, #{data},now())")
    void addMessage(MerchantMessage message);
}
